<?php

use Phinx\Migration\AbstractMigration;

class AddColumnTemplatePcAndExamplePcInMessageTemplateTable extends AbstractMigration
{
    public function up()
    {
        $this->table("message_template")
            ->addColumn("template_pc", "text", [
                'comment' => "pc模板",
                'null' => true,
            ])
            ->addColumn("example_pc", "text", [
                'comment' => "pc示例",
                'null' => true,
            ])->save();
    }

    public function down()
    {
        $this->table("message_template")
            ->removeColumn("template_pc")
            ->removeColumn("example_pc")
            ->save();
    }
}
